package com.catering.controller;

import com.catering.pojo.DTableInfo;
import com.catering.service.DTableInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/table")
public class TableInfoController {
    @Autowired
    private DTableInfoService tableInfoService;
    @RequestMapping("/list")
    public List<DTableInfo> list() {
        return tableInfoService.selectByTableInfo();
    }
}
